
<ion-header>

  <ion-navbar>
    <ion-title>交易记录</ion-title>
  </ion-navbar>

</ion-header>


<ion-content>
  <loading [text]="'加载中...'" *ngIf="showLoading"></loading>
  <ion-list>
    <ion-item *ngFor="let item of data">
      <div >
        <p class="time">{{item.CreateTime}}</p>
      </div>
      <div class="content">
        <p>{{item.typeStr}}</p>
        <p>{{item.Remark}}</p>
        <p [ngClass]="{'green':item.Type == 1 || item.Type == 4,'red':item.Type == 2 || item.Type == 3}">
          <span *ngIf="item.Type == 1 || item.Type == 4">+</span>
          {{item.Amount}}
        </p>
      </div>
    </ion-item>
  </ion-list>

</ion-content>
